package com.tionsy.springbootshiro.repository;

import com.tionsy.springbootshiro.entity.RoleEntity;
import com.tionsy.springbootshiro.entity.RoleMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tiany
 * @date 2018/10/31 10:44
 */
@Mapper
public interface RoleMapper {

    List<RoleEntity> getRolesByUserId(String userId);

    List<RoleEntity> getAllRoles(@Param("roleName")String roleName,@Param("remark")String remark);

    int batchInsertRoleMenu(List<RoleMenuEntity> roleMenus);
}

